import http from "../../utils/request";
// ?key=&page=1&psize=10
export interface questionsType{
    key?:string
    page?:number
    psize?:number
}
interface DelIds{
    ids:number[]
}
export const getquestions=(data:questionsType)=>http.get<any>('/questions/list',data)
// 删除
export const deleteOne=(id:number)=>http.get('/questions/delete?id='+id)
// 批量删除
export const deleteMany=(id:DelIds)=>http.post('/questions/deleteall',id)